//
//  DeviceInfo.m
//  timelyRain
//
//  Created by Jiafei Wei on 2016/12/20.
//  Copyright © 2016年 Jiafei Wei. All rights reserved.
//

#import "DeviceInfo.h"

@implementation DeviceInfo
-(void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.watch_sn forKey:@"watch_sn"];
    [aCoder encodeObject:self.device_sn forKey:@"device_sn"];
    [aCoder encodeObject:self.device_model forKey:@"device_model"];
    [aCoder encodeObject:self.phone_ease_userid forKey:@"phone_ease_userid"];
    [aCoder encodeObject:self.phone_model forKey:@"phone_model"];
    [aCoder encodeObject:self.data forKey:@"data"];
}
-(id)initWithCoder:(NSCoder *)aDecoder{
    if (self ==[super init]) {
        self.watch_sn = [aDecoder decodeObjectForKey:@"watch_sn"];
        self.device_sn = [aDecoder decodeObjectForKey:@"device_sn"];
        self.device_model = [aDecoder decodeObjectForKey:@"device_model"];
        self.phone_ease_userid =[aDecoder decodeObjectForKey:@"phone_ease_userid"];
        self.phone_model=[aDecoder decodeObjectForKey:@"phone_model"];
        self.data=[aDecoder decodeObjectForKey:@"data"];
    }
    return self;
}

@end
